﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace JTicket.UI
{
    public partial class JT_TitleAdd : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
                Bind();
        }

        void Bind()
        {
            string TitleCode = string.Empty;
            if (!string.IsNullOrEmpty(Request.QueryString["TitleCode"]))
                TitleCode = Request.QueryString["TitleCode"].ToString();
            ScriptManager.RegisterStartupScript(
              this, typeof(Page), "TitleCode", string.Format("var TitleCode='{0}';", TitleCode), true);
            this.titlecode.Value = TitleCode;
        }
    }
}